package com.scm.task;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Service;

import com.scm.utils.Const;

@Service("taskService") 
public class TaskService {
	
	public void invokeTask(){
		
		//System.out.println("执行任务..............");
		
		//每天0点重置为1
		Const.PROOFING_CODE=1;
		Const.CUSTOMER_CODE=1;
		Const.FACTORY_CODE=1;
		Const.ORDER_CODE=1;
		Const.DATE_CODE=new SimpleDateFormat("yyMMdd").format(new Date());
	}

}
